using System;
using System.IO;
using System.Windows;
using System.Collections.Generic;
using Qplus.beans;

namespace Qplus.Commands
{

    /**
     * 
     *
     */
    public class GetRoomListCommand : AbsHeaderHttpCommand , HttpInputStreamProcessor{

	    const string COMMAND = "GetRoomList";
	    /**
	     * @param command
	     * @param uid
	     * @param UKEY
	     */
	    public GetRoomListCommand(String uid, String UKEY)
            : base(COMMAND, uid, UKEY)
        {
		   
	    }

	    public void set(int pageNum){
		    setPageNum(pageNum);
	    }
	
	    private void setPageNum(int pageNum){
		    addParams("PageNumber", pageNum);
	    }

	    
	    public override Boolean processInputStream(Stream responseStream) {
		   //TODO
            return true;
	    }

	    
	    public override void onSuccess(int code) {
	    }

	    
	    public override void onFailed(int code) {
	    }
	
	    public void onGetRoomList(List<Room> list){
	    }
	
	  //  public HttpTask execute(string context, String url) {
		//    return base.execute(url, this);
        //  }
        public HttpTask execute(String url)
        {
            return base.execute(url, this);
        }
    }
}
